#-------------------------------------------------------------------------------
#
#	Name    :
#	Purpose : Mode for Povray 3.xx
#	Author  :
#	Licence :
#	Version :
#
#-------------------------------------------------------------------------------

SyntaxOptions
	SingleQuote	No
	DoubleQuote	Yes
	QuoteQuote	Yes
	SplitString	No
End
SyntaxComment
	Type		OneLine
	StartWith	//
End


#--- 	Povray objects

SyntaxWords Group1
	atmosphere bicubic_patch blob box cone cylinder
	difference height_field intersection lathe merge
	mesh object plane polygon prism sor sphere
	superellipsoid text torus triangle union
End

#--- attributes

SyntaxWords Group2
	adaptive ambient ambient_settings angle aperture
	area_light assumed_gamma blue blur_samples brick
	checker color color_map conic_sweep cubic_spline
	diffuse fade_distance fade_power falloff finish
	focal_point frequency green hexagon linear_spline
	linear_sweep location look_at looks_like
	max_trace_level metallic no_shadow normal
	open orthographic phong pigment
	quadratic_spline radius red reflection
	rgb roughness shadowless specular spotlight
	texture tga threshold tightness ttf turbulence
	u_step v_step wrinkles
End

#--- POV code

SyntaxWords Group3
	#include #declare #version
End


#----------------------------------------------------------------------


Functions

	Menu	Camera
	Icon	camera
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.camera")
	Help	click Select/Adjust for a camera

	Adjust	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.cameraF")

	Menu	Light
	Icon	Light
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.light")
	Help	click Select for a lightsource


	Menu	Sphere
	Icon	sphere
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.sphere")
	Help	click Select for a sphere

	Menu	Box
	Icon	box
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.box")
	Help	click Select for a box
	
	Menu	Cylinder
	Icon	cylinder
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.cylinder")
	Help	click Select for a cylinder

	Menu	Cone
	Icon	cone
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.cone")
	Help	click Select for a cone

	Menu	Torus
	Icon	torus
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.torus")
	Help	click Select for a torus

	Adjust	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.torusF")


	Menu	Blob
	Icon	blob
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.blob")
	Help	click Select for a blob


	Menu	Plane
	Icon	plane
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.plane")
	Help	click Select for a plane

	Menu	Triangle
	Icon	triangle
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.triangle")
	Help	click Select for a triangle

	Menu	Disc
	Icon	disc
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.disc")
	Help	click Select for a disc

	Menu	Color
	Icon	color
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.color")
	Help	click Select for colors

	Menu	Texture
	Icon	texture
	Select	InsertFile("<StrongED$Dir>.Defaults.Modes.!POVray3.Files.texture")
	Help	click Select for textures

	Icon	100x100
	Select	SettMP() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w100 -h100")
	Help	start POVray with the actually script at 100x100 pixels SELECT - low quality (fast) ADJUST high quality (slow)

	Adjust	SettMP() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w100 -h100 +a0.6")

	Icon	320x256
	Select	SetTmp() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w320 -h256")
	Help	start POVray with the actually script at 320x256 pixels SELECT - low quality (fast) ADJUST high quality (slow)

	Adjust	SetTmp() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w320 -h256 +a0.6")


	Icon	640x480
	Select	SetTmp() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w640 -h480")
	Help	start POVray with the actually script at 640x480 pixels SELECT - low quality (fast) ADJUST high quality (slow)

	Adjust	SetTmp() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w640 -h480 +a0.6")

	Icon	800x600
	Select	SetTmp() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w800 -h600")
	Help	start POVray with the actually script at 800x600 pixels SELECT - low quality (fast) ADJUST high quality (slow)

	Adjust	SetTmp() SaveRun ("Dir <tmp$path>") Run ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w800 -h600 +a0.6")

	Icon	directory
	Select	Dclick("pov:tga")
	Help	open the output (image) directory

	Menu	1024 x 768 low quality
	Select	SettMP() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w1024 -h768")

	Menu	1024 x 768 high quality
	Select	SettMP() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w1024 -h768 +a0.6")

	Menu	1280 x 1024 low quality
	Select	SettMP() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w1280 -h1024")

	Menu	1280 x 1024 high quality
	Select	SettMP() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w1280 -h1024 +a0.6")

	Menu	1600 x 1200 low quality
	Select	SettMP() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w1600 -h1200")

	Menu	1600 x 1200 high quality
	Select	SettMP() SaveRun ("pov:povray +Lpov:include +I<tmp$path>.<tmp$leaf> +O<pov$path><tmp$leaf> +FT -w1600 -h1200 +a0.6")


End

KeyList
	^I	1	"#include "
	^D	1	"#declare "
	^P	1	"pigment {   }"
End
